package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.IndividualTaxFormulaBeanMapper;
import com.billing.model.entity.TIndividualTaxFormula;
import com.billing.service.IndividualTaxFormulaService;

@Service
public class IndividualTaxFormulaServiceImpl implements
		IndividualTaxFormulaService {

	@Resource
	private IndividualTaxFormulaBeanMapper individualTaxFormulaBeanMapper;
	
	@Override
	public List<TIndividualTaxFormula> getTIndividualTaxFormulaList(
			double taxablestart, double taxableend,int organizationid,int pageSize,int currentPage) {
		return individualTaxFormulaBeanMapper.getTIndividualTaxFormulaList(taxablestart, taxableend,organizationid, pageSize, currentPage);
	}

	@Override
	public TIndividualTaxFormula getTIndividualTaxFormulaByid(String id) {
		return individualTaxFormulaBeanMapper.getTIndividualTaxFormulaByid(id);
	}

	@Override
	public int updateTIndividualTaxFormula(TIndividualTaxFormula tax) {
		return individualTaxFormulaBeanMapper.updateTIndividualTaxFormula(tax);
	}

	@Override
	public int deleteTIndividualTaxFormulaByid(String id) {
		return individualTaxFormulaBeanMapper.deleteTIndividualTaxFormulaByid(id);
	}

	@Override
	public int insertTIndividualTaxFormula(TIndividualTaxFormula tax) {
		return individualTaxFormulaBeanMapper.insertTIndividualTaxFormula(tax);
	}

	@Override
	public List<TIndividualTaxFormula> selectTIndividualTaxFormulaList(int organizationid) {
		return individualTaxFormulaBeanMapper.selectTIndividualTaxFormulaList(organizationid)	;
	}

	@Override
	public int getTIndividualTaxFormulaNum(double taxablestart,
			double taxableend,int organizationid) {
		return individualTaxFormulaBeanMapper.getTIndividualTaxFormulaNum(taxablestart, taxableend,organizationid);
	}

}
